//
//  ReferTableViewCell.m
//  Koala_Fm
//
//  Created by dllo on 16/1/19.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ReferTableViewCell.h"
#define W self.contentView.bounds.size.width/375
#define H self.contentView.bounds.size.height/667
@implementation ReferTableViewCell
- (void)dealloc
{
    [_titleLable release];
    [_imag release];
    [_contentLable release];
    [_imagOne release];
    [_imagTow release];
    [_listenLable release];
    [_subscribeLable release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.imag = [[UIImageView alloc]init];
//        self.imag.backgroundColor = [UIColor yellowColor];
        [self.contentView addSubview:_imag];
        [_imag release];
        //
        self.titleLable = [[UILabel alloc]init];
//        self.titleLable.backgroundColor = [UIColor blueColor];
        [self.contentView addSubview:_titleLable];
        [_titleLable release];
        //
        self.contentLable = [[UILabel alloc]init];
//        self.contentLable.backgroundColor = [UIColor greenColor];
        [self.contentView addSubview:_contentLable];
        [_contentLable release];
        //
        self.imagOne = [[UIImageView alloc]init];
//        self.imagTow.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:_imagOne];
        [_imagOne release];
        //
        self.imagTow = [[UIImageView alloc]init];
//        self.imagTow.backgroundColor = [UIColor blackColor];
        [self.contentView addSubview:_imagTow];
        [_imagTow release];
        //
        self.listenLable = [[UILabel alloc]init];
//        self.listenLable.backgroundColor = [UIColor darkTextColor];
        self.listenLable.font = [UIFont systemFontOfSize:15];
        [self.contentView addSubview:_listenLable];
        [_listenLable release];
        //
        self.subscribeLable = [[UILabel alloc]init];
//        self.subscribeLable.backgroundColor = [UIColor yellowColor];
        self.subscribeLable.font = [UIFont systemFontOfSize:15];
        [self.contentView addSubview:_subscribeLable];
        [_subscribeLable release];
    }
    return self;
}

- (void)layoutSubviews{
    [super layoutSubviews];
    _imag.frame = CGRectMake(5, 5, 90, 90);
    _titleLable.frame = CGRectMake(100, 5, self.contentView.frame.size.width - 15 - 90 - 35, 30);
    _contentLable.frame = CGRectMake(100, 40, self.contentView.frame.size.width - 15 - 90 - 35, 25);
    _imagOne.frame = CGRectMake(self.contentView.frame.size.width - 130, 75, 20, 20);
    _imagTow.frame = CGRectMake(100 , 75 , 20 , 20 );
    _listenLable.frame = CGRectMake(120 , 75, 100, 20);
    _subscribeLable.frame = CGRectMake(self.contentView.frame.size.width - 100 , 75, 100, 20);
    
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
